package com.maimao.kill.config;

/**
 * @author MaoLin Wang
 * @date 2021/1/18 2:47 下午
 */
public class RabbitProperties {
    /**
     * 秒杀订单提交死信交换机
     */
    public static final String KILL_ORDER_DEAD_EXCHANGE = "kill.order.dead.exchange";

    /**
     * 秒杀订单提交的交换机
     */
    public static final String KILL_ORDER_SUBMIT_DELAY_EXCHANGE = "kill.order.submit.delay.exchange";

    /**
     * 订单提交交换机
     */
    public static final String KILL_ORDER_SUBMIT_EXCHANGE = "kill.order.submit.exchange";

    /**
     * 秒杀成功的交换机
     */
    public static final String KILL_SUCCESS_EXCHANGE = "kill.success.exchange";


    /**
     * 秒杀订单提交死信routing-key
     */
    public static final String KILL_ORDER_DEAD_ROUTING_KEY = "kill.order.dead.routing-key";

    /**
     * 秒杀订单提交的延迟队列routing-key
     */
    public static final String KILL_ORDER_SUBMIT_DELAY_ROUTING_KEY = "kill.order.submit.delay.routing-key";

    /**
     * 秒杀订单提交routing-key
     */
    public static final String KILL_ORDER_SUBMIT_ROUTING_KEY = "kill.order.submit.routing-key";

    /**
     * 秒杀成功的routing-key
     */
    public static final String KILL_SUCCESS_ROUTING_KEY = "kill.success.routing-key";


    /**
     * 秒杀订单死信队列
     */
    public static final String KILL_ORDER_DEAD_QUEUE = "kill.order.dead.queue";

    /**
     * 秒杀订单提交的延迟队列
     */
    public static final String KILL_ORDER_SUBMIT_DELAY_QUEUE = "kill.order.submit.delay.queue";

    /**
     * 秒杀订单提交队列
     */
    public static final String KILL_ORDER_SUBMIT_QUEUE = "kill.order.submit.queue";

    /**
     * 秒杀成功的队列
     */
    public static final String KILL_SUCCESS_QUEUE = "kill.success.queue";


    /**
     * 秒杀订单超时支付时间（ms）
     */
    public static final String PAY_EXPIRE = String.valueOf(1000 * 60 * 5);
    public static final Long PAY_EXPIRE_L = 1000 * 60 * 5L;
}
